<?php
class Message{
	private $array_error;
	private $array_info;
	
	public function __construct(){
		$this->array_error = array();
		$this->array_info = array();
	}
	
	public function addError($string){
		$this->array_error[] = $string;
	}
	
	public function addInfo($string){
		$this->array_info[] = $string;
	}
	
	public function getError(){
		$tmp = $this->array_error;
		$this->array_error = NULL;
		return $tmp;
	}
	
	public function getInfo(){
		$tmp = $this->array_info;
		$this->array_info = NULL;
		return $tmp;
	}
}
?>